﻿using System.Collections.Generic;
using AndrewSiemer.KnowledgeExchange.DataAccess;

namespace AndrewSiemer.KnowledgeExchange.Core
{
    public class PostService : IPostService
    {
        private IPostRepository _postRepository;
        
        public PostService(IPostRepository postRepository)
        {
            _postRepository = postRepository;
        }

        public List<Domain.Post> GetAllPosts()
        {
            return _postRepository.GetAllPosts();
        }
    }
}